# Common Django views for the Murphy Task Manager
# Copyright (c) 2009 the murphy-tm team
#
# This file and all the other files belonging to the MurphyTM project
# are distributed under the terms of the GNU General Public License v3.
# See the COPYING file for details.
from django.contrib import auth
from django.http import HttpResponseRedirect

def logout(request):
    """Logs out the user and redirects him to the login page"""
    auth.logout(request)
    return HttpResponseRedirect('/login/')
